package com.yanqu.road.logic.bussiness.kuang;

import com.yanqu.road.entity.kuang.KuangUserData;
import com.yanqu.road.entity.kuang.battle.*;
import com.yanqu.road.entity.kuang.config.KuangEquipmentConfig;
import com.yanqu.road.entity.kuang.config.KuangPlaceConfig;
import com.yanqu.road.entity.kuang.group.KuangMatchGroup;
import com.yanqu.road.logic.bussiness.DaoHelper;

import java.util.List;
import java.util.Map;

public class KuangBusiness {
    public static KuangUserData getKuangUserData(long userId) {
        return DaoHelper.getKuangUserDataDaoImpl().getKuangUserData(userId);
    }

    public static boolean addKuangUserData(KuangUserData kuangUserData) {
        return DaoHelper.getKuangUserDataDaoImpl().add(kuangUserData);
    }

    public static boolean updateKuangUserData(KuangUserData kuangUserData) {
        return DaoHelper.getKuangUserDataDaoImpl().update(kuangUserData);
    }

    public static Map<Integer, KuangEquipmentConfig> getKuangEquipmentConfigMap() {
        return DaoHelper.getKuangConfigDaoImpl().getKuangEquipmentConfigMap();
    }
    public static Map<Integer, KuangPlaceConfig> getKuangPlaceConfigMap() {
        return DaoHelper.getKuangConfigDaoImpl().getKuangPlaceConfigMap();
    }

    public static Map<Integer, KuangMatchGroup> getKuangMatchGroupMap(int weekId) {
        return DaoHelper.getKuangMatchGroupDaoImpl().getKuangMatchGroupMap(weekId);
    }

    public static boolean addKuangMatchGroup(KuangMatchGroup matchGroup) {
        return DaoHelper.getKuangMatchGroupDaoImpl().add(matchGroup);
    }

    public static boolean updateKuangMatchGroup(KuangMatchGroup matchGroup) {
        return DaoHelper.getKuangMatchGroupDaoImpl().update(matchGroup);
    }

    public static CrossKuangBattleData getCrossKuangBattleData(int weekId, int groupId) {
        return DaoHelper.getCrossKuangBattleDataDaoImpl().getCrossKuangBattleData(weekId, groupId);
    }

    public static List<Integer> getCrossKuangBattleGroupList(int weekId) {
        return DaoHelper.getCrossKuangBattleDataDaoImpl().getCrossKuangBattleGroupList(weekId);
    }

    public static boolean addCrossKuangBattleData(CrossKuangBattleData crossKuangBattleData) {
        return DaoHelper.getCrossKuangBattleDataDaoImpl().add(crossKuangBattleData);
    }

    public static boolean updateCrossKuangBattleData(CrossKuangBattleData crossKuangBattleData) {
        return DaoHelper.getCrossKuangBattleDataDaoImpl().update(crossKuangBattleData);
    }

    public static Map<Long, CrossKuangBattleUserData> getCrossKuangBattleUserDataMap(int weekId, int groupId) {
        return DaoHelper.getCrossKuangBattleUserDataDaoImpl().getCrossKuangBattleUserDataMap(weekId, groupId);
    }

    public static boolean addCrossKuangBattleUserData(CrossKuangBattleUserData crossKuangBattleUserData) {
        return DaoHelper.getCrossKuangBattleUserDataDaoImpl().add(crossKuangBattleUserData);
    }

    public static boolean updateCrossKuangBattleUserData(CrossKuangBattleUserData crossKuangBattleUserData) {
        return DaoHelper.getCrossKuangBattleUserDataDaoImpl().update(crossKuangBattleUserData);
    }

    public static Map<Integer, CrossKuangBattleCampData> getCrossKuangBattleCampDataMap(int weekId, int groupId) {
        return DaoHelper.getCrossKuangBattleCampDataDaoImpl().getCrossKuangBattleCampDataMap(weekId, groupId);
    }

    public static boolean addCrossKuangBattleCampData(CrossKuangBattleCampData crossKuangBattleCampData) {
        return DaoHelper.getCrossKuangBattleCampDataDaoImpl().add(crossKuangBattleCampData);
    }

    public static boolean updateCrossKuangBattleCampData(CrossKuangBattleCampData crossKuangBattleCampData) {
        return DaoHelper.getCrossKuangBattleCampDataDaoImpl().update(crossKuangBattleCampData);
    }

    public static Map<Integer, CrossKuangBattlePlaceData> getCrossKuangBattlePlaceDataMap(int weekId, int groupId) {
        return DaoHelper.getCrossKuangBattlePlaceDataDaoImpl().getCrossKuangBattlePlaceDataMap(weekId, groupId);
    }

    public static boolean addCrossKuangBattlePlaceData(CrossKuangBattlePlaceData crossKuangBattlePlaceData) {
        return DaoHelper.getCrossKuangBattlePlaceDataDaoImpl().add(crossKuangBattlePlaceData);
    }

    public static boolean updateCrossKuangBattlePlaceData(CrossKuangBattlePlaceData crossKuangBattlePlaceData) {
        return DaoHelper.getCrossKuangBattlePlaceDataDaoImpl().update(crossKuangBattlePlaceData);
    }

    public static Map<Integer, CrossKuangBattleEndRecord> getCrossKuangBattleEndRecordMap(int weekId, int groupId) {
        return DaoHelper.getCrossKuangBattleEndRecordDaoImpl().getCrossKuangBattleEndRecordMap(weekId, groupId);
    }

    public static boolean addCrossKuangBattleEndRecord(CrossKuangBattleEndRecord crossKuangBattleEndRecord) {
        return DaoHelper.getCrossKuangBattleEndRecordDaoImpl().add(crossKuangBattleEndRecord);
    }

    public static boolean updateCrossKuangBattleEndRecord(CrossKuangBattleEndRecord crossKuangBattleEndRecord) {
        return DaoHelper.getCrossKuangBattleEndRecordDaoImpl().update(crossKuangBattleEndRecord);
    }

    public static Map<Integer, CrossKuangTreasureData> getCrossKuangTreasureDataMap(int weekId, int groupId) {
        return DaoHelper.getCrossKuangTreasureDataDaoImpl().getCrossKuangTreasureDataMap(weekId, groupId);
    }

    public static boolean addCrossKuangTreasureData(CrossKuangTreasureData crossKuangTreasureData) {
        return DaoHelper.getCrossKuangTreasureDataDaoImpl().add(crossKuangTreasureData);
    }

    public static boolean updateCrossKuangTreasureData(CrossKuangTreasureData crossKuangTreasureData) {
        return DaoHelper.getCrossKuangTreasureDataDaoImpl().update(crossKuangTreasureData);
    }

    public static Map<Integer, List<CrossKuangTreasureNoticeData>> getCrossKuangTreasureNoticeDataMap(int weekId, int groupId) {
        return DaoHelper.getCrossKuangTreasureNoticeDataDaoImpl().getCrossKuangTreasureNoticeDataMap(weekId, groupId);
    }

    public static boolean addCrossKuangTreasureNoticeData(CrossKuangTreasureNoticeData crossKuangTreasureNoticeData) {
        return DaoHelper.getCrossKuangTreasureNoticeDataDaoImpl().add(crossKuangTreasureNoticeData);
    }
}
